package com.javajun.endofterm.common;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: Xiong Limin
 * Date: 2020-12-02-7:09 下午
 */
public class AjaxUtils {
    public static HashMap<String, Object> buildResult(String msg) {
        HashMap<String, Object> result=new HashMap<>();
        result.put("code", 0);
        result.put("msg", msg);
        return result;
    }

    public static HashMap<String, Object> buildFailResult(String msg) {
        HashMap<String, Object> result=new HashMap<>();
        result.put("code", -1);
        result.put("msg", msg);
        return result;
    }
}
